#!/bin/sh

export VID="0x1D6B"
export PID="0x0004"
export MANUFACTURER="Vendor"
export PRODUCT="Camera"
export SERIALNUMBER="123456789012"
export CamControl1=0x0A
export CamControl2=0x00
export CamControl3=0x00
export ProcControl1=0x4F
export ProcControl2=0x14
export NV21="360p 720p 1080p 1440p"
export MJPEG="360p 720p 1080p 1440p"
export H264="360p 720p 1080p 2160p"

export args=$1

function uvc_function()
{
	lsmod | grep "sys_config" > /dev/null
	if [ $? -eq 0 ]; then
		echo "UVC drivers and configurations have been loaded."
	else
		echo "start to config uvc."
	fi
	./ConfigUVC.sh
	sleep 1
	./sample_uvc_app
}

case $args in
	sc4336p)
		uvc_function
		;;
	sc450ai)
		uvc_function
		;;
	sc500ai)
		uvc_function
		;;
	-h)
		echo 'Options: sc4336p sc450ai sc500ai '
		;;
	*)
		echo 'Use '-h' to display command line options of sub-processes'
		;;
esac
